class CreateUsuariosJogadors < ActiveRecord::Migration
  def self.up
    create_table :jogadores do |t|
      t.string :nome, :null => false
      t.string :login, :unique => true, :null => false
      t.string :senha, :null => false
      t.string :email, :unique => true
      t.integer :pontuacaoMensal, :default => 0, :null => false
      t.integer :vitorias, :default => 0, :null => false
      t.date :ultimoJogo
    end
  end

  def self.down
    drop_table :jogadores
  end
end
